package net.kindroid.fm;

interface IFMService
{
	/**
	* open FM
	*/
	boolean openFM();
	
	/**
	*  close FM
	*/
	boolean closeFM();
	
	/**
	*  whether FM is open
	*/
	boolean isOpen();
	
	/**
	*  set a special frequency to the FM
	*/
	int setCurrentFrequency(in int frequency);
	
	/**
	*  search FM tunes
	*/
	boolean searchStation(in int start, in int direction, in int timeout, in int reserve);
	
	/**
	*  get current Frequency
	*/
	int getCurrentFrequency();
	
	/**
	* stop search FM
	*/
	boolean stopSearch();
	
	/**
	* set FM volume
	*/
	boolean setVolume(in int value);
	
	/**
	*  get current Volume
	*/
	int getCurrentVolume();
	
	/**
	*  set current mute mode
	*/
	int setMuteMode(in int mode);
}

